<% form_for([@project, @milestone], :html => {:class => 'basic-form rounded'}) do |f| %>
	<%= error_messages_for :milestone, :header_tag => 'h1', :class => "alert red error rounded-8" %>
	
	<fieldset>
		<dl>
			<dt><%= f.label :title, t('milestones.title') %></dt>
			<dd><%= f.text_field :title %></dd>
			
			<dt><%= f.label :description , t('milestones.description') %> <small>(<%= t :optional %>)</small></dt>
			<dd><%= f.text_area :description, :rows => 10 %></dd>
			
			<dt><%= f.label :due, t('milestones.due') %></dt>
			<dd><%= f.date_select :due %></dd>
		</dl>
	</fieldset>
	<%= render :partial => 'form_buttons_create' if type == 'create' %>
	<%= render :partial => 'form_buttons_edit' if type == 'edit' %>
<% end %>